/*require("ui.js")
 * */
var TownUI = (function(){
    var id_ui = ".gameUI .townUI";
    var id_wushuguan = ".townUI #buttons #wushuguan";
    return {
        name:"TownUI",
        hide:function(){
            addClassWithCheck(id_ui,"hide");
        },
        show:function(){
            removeClassWithCheck(id_ui,"hide");
        },
        onwushuguan:function(cb){
            $(id_wushuguan).click(function(){
                executeWhenEnable(id_wushuguan,cb);
            });
        },
    }
})();

UISystem.registerUI(TownUI.name,TownUI);